package object;

import java.util.Iterator;
import java.util.List;

public class Score {
	
	private String cid;
	private ScoreType type;
	private List<ScoreDetail> details;
	
	public Score(String cid, ScoreType type, List<ScoreDetail> details) {
		super();
		this.cid = cid;
		this.type = type;
		this.details = details;
	}
	
	public void setDetails(List<ScoreDetail> details) {
		this.details = details;
	}

	public Iterator<ScoreDetail> iterator(){
		return details.iterator();
	}
	

	public String getCid() {
		return cid;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public ScoreType getType() {
		return type;
	}
	public void setType(ScoreType type) {
		this.type = type;
	}
	
	

}
